
<?php
	$images = get_filenames('assets/images/slider');	 
?>
<div id="slider">
	<div class="wrap-img">
        <div class="images">
            <ul class="slider">
            	<?php
            		foreach ($images as $img){?>
            		<li>
            			<?php
            				echo img('assets/images/slider/'.$img) ;
            			?>
            		</li>
            		<?php 	
            		} 
            	?>
			</ul>
        </div>
    </div>
    
    <div class="control">
    	<ul>
        	<li class="1"></li>        	
        	<li class="2"></li>        	
        	<li class="3"></li>        	
        </ul>
    </div>

	<div class="hr"></div>
</div><!-- END SLIDER -->



<div id="featured">

	<div class="f-title">
    	<a href=""><?php echo lang('home.feature')?></a>
        <ul class="right">
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>

	<div class="f-product">
    	
    	<?php
    		for ($i = 0;$i < sizeof($feature_products);$i++)
    		{?>
    		<?php
    			if($i % 4 == 0) {?>
    				<div class="f-item first">
    			<?php } else  {?>	
    				<div class="f-item">
    		<?php } ?>			 
        
        	<div class="f-image">
            	<img src="<?php echo base_url() ?>assets/images/<?php echo $feature_products[$i]['image']?>" alt="demo img" />
            </div>
            <div class="f-name">
            	<h1><?php echo $feature_products[$i]['name']?></h1>
                <h2><?php echo number_format( $feature_products[$i]['price'])?> VNĐ</h2>
                <img src="<?php echo base_url() ?>assets/images/p-cart.jpg" alt="add cart" />
            </div>
        
        	</div><!-- END ITEM -->
    		<?php
    		} 
    	?>
        
		<div class="clear"></div>

    </div>


</div><!-- END FEATURED -->



<div id="featured">

	<div class="f-title">
    	<a href=""><?php echo lang('home.hot')?></a>
        <ul class="right">
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>

	<div class="f-product">
    	
        <?php
    		for ($i = 0;$i < sizeof($hot_products);$i++)
    		{?>
    		<?php
    			if($i % 4 == 0) {?>
    				<div class="f-item first">
    			<?php } else  {?>	
    				<div class="f-item">
    		<?php } ?>			 
        	<div class="hotest"></div>
        	<div class="f-image">
            	<img src="<?php echo base_url() ?>assets/images/<?php echo $hot_products[$i]['image']?>" alt="demo img" />
            </div>
            <div class="f-name">
            	<h1><?php echo $hot_products[$i]['name']?></h1>
                <h2><?php echo number_format( $hot_products[$i]['price'])?> VNĐ</h2>
                <a href="" onclick="add_to_cart('<?php echo $hot_products[$i]['id']?>','<?php echo base_url($this->lang->lang())?>'); return false;">
                	<img src="<?php echo base_url('assets/images/p-cart.jpg')?>" alt="add cart" />
                </a>
            </div>
        
        	</div><!-- END ITEM -->
    		<?php
    		} 
    	?>
        
		<div class="clear"></div>

    </div>


</div><!-- END FEATURED -->

<div class="line"></div>

<div id="ads">
    <img class="ads" src="<?php echo base_url() ?>assets/images/ads.jpg" alt="ads1" />
    <img src="<?php echo base_url() ?>assets/images/ads.jpg" alt="ads2" />
</div><!-- END ADS -->

</div><!-- END Wrapper -->



